﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Microsoft.ManagementConsole.SnapIns
{
    [SnapInSettings("{CE255EF6-9E3D-42c8-B725-95CCC761B9D9}", DisplayName = "Akbank", Description = "Akbank Des")]
    public class SelectionListviewSnapIn : SnapIn
    {
        /// <summary>
        /// Constructor.
        /// </summary>
        public SelectionListviewSnapIn()
        {
            this.RootNode = new ScopeNode();
            this.RootNode.DisplayName = "Akbank";

            MmcListViewDescription lblTask = new MmcListViewDescription();
            lblTask.DisplayName = "Tasks";
            lblTask.ViewType = typeof(SelectionListView);
            lblTask.Options = MmcListViewOptions.ExcludeScopeNodes;

            // Attach the view to the root node.
            this.RootNode.ViewDescriptions.Add(lblTask);
            this.RootNode.ViewDescriptions.DefaultIndex = 0;

            var node1 = new ScopeNode() { DisplayName = "Mesafeli" };
            node1.Children.Add(new ScopeNode() { DisplayName = "Analiz" });
            node1.Children.Add(new ScopeNode() { DisplayName = "Developer" });
            node1.Children.Add(new ScopeNode() { DisplayName = "Müşteri" });

            this.RootNode.Children.Add(node1);

            var node2 = new ScopeNode() { DisplayName = "Yatırım Dashboard" };
            node2.Children.Add(new ScopeNode() { DisplayName = "Analiz" });
            node2.Children.Add(new ScopeNode() { DisplayName = "Developer" });
            node2.Children.Add(new ScopeNode() { DisplayName = "Müşteri" });
            
        }
    }
}
